<ul class="navbar-nav ml-auto" id="menu-content">
</ul>
<script>
    $(document).ready(function () {
        getAjaxRequst('/api/stat/channelList', null, function (res) {
            if (res.code == 0) {
                let menu = '<li class="nav-item"><a href="index.html" class="nav-link">首页</a></li>';
                for (let i = 0; i < res.data.length; i++) {
                    menu += '<li class="nav-item"><a href="browsejobs.html?channelId=' + res.data[i].id + '" class="nav-link">' + res.data[i].channelName + '</a></li>';
                }
                menu += '<li class="nav-item"><a href="blog.html" class="nav-link">新闻资讯</a></li>';
                menu += '<li class="nav-item"><a href="contact.html" class="nav-link">联系我们</a></li>';
                $('#menu-content').html(menu);
            }
        });
    });
</script>